<%@ page import="com.checkfree.isolutions.customer.persist.*" %>
<%@ page import="com.checkfree.isolutions.statement.*" %>
<%@ page import="com.checkfree.isolutions.statement.persist.*" %>
<%@ page import="com.checkfree.isolutions.property.Properties" %>
<%@ page import="com.checkfree.isolutions.property.PropertiesConfig" %>
<%@ page import = "java.util.*" %>
<%@ page import = "java.text.*" %>
<%@ page import="com.myebills.ebpsfrontend.utils.*" %>
<%@ page import="com.myebills.ebpsfrontend.maxis.*" %>
<%@ page import="com.myebills.ebpsfrontend.controller.*" %>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Paypal Payment Page</title>

<link href="css/paypal-css.css" rel="stylesheet" type="text/css" />
</head>

<script type="text/javascript" language="Javascript1.1">
	function SubmitForm(){
		var paymentAmt = document.paymentForm.paymentAmount.value;
		if(paymentAmt<30){
			alert("Payment amount must be at least RM30.00");
			return false;
		}else{
			document.paymentForm.submit();
		}
	}
</script>


<%

		String acctNo = request.getParameter("accid");
		String statid = request.getParameter("statid");
		String amt = request.getParameter("amt");
%>

<body>
<form name="paymentForm" action="PaypalCheckout">
<input type="hidden" name="<%=EbppxConstants.ACCOUNT_ID%>" value="<%=acctNo%>">
<input type="hidden" name="statid" value="<%=statid%>">

<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td colspan="2" style="padding:14px 12px 3px 15px;"><img src="images/paypal/paypal-maxis.gif" width="299" height="55" /></td>
    <td align="right" valign="top" style="padding:14px 12px 3px 15px;"><img src="images/maxis.gif" width="82" height="40" /></td>
  </tr>
  <tr>
    <td background="images/paypal/gradient-bg.gif"><img src="images/paypal/gradient-left.gif" width="58" height="26" /></td>
    <td background="images/paypal/gradient-bg.gif">&nbsp;</td>
    <td background="images/paypal/gradient-bg.gif"><img src="images/paypal/gradient-right.gif" width="31" height="26" align="right" /></td>
  </tr>
  <tr>
    <td colspan="3">
    <br />
    <table width="644" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="39" rowspan="6">&nbsp;</td>
        <td height="40" align="left" valign="top"><img src="images/paypal/paypal.gif" width="78" height="31" /></td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td width="231" height="32" align="left" valign="top"><img src="images/paypal/view.gif" width="206" height="19" /></td>
        <td width="16">&nbsp;</td>
        <td width="358">&nbsp;</td>
      </tr>
      <tr>
        <td height="29"><span class="paypal"><strong>Bill Payment</strong></span></td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td height="30"><span class="paypal">Account No</span></td>
        <td>&nbsp;</td>
        <td><strong><span class="paypal"><%=acctNo%></span></strong></td>
      </tr>
      <tr>
        <td height="30"><span class="paypal">Amount Due</span></td>
        <td>&nbsp;</td>
        <td><strong><span class="paypal">RM <%=amt%></span></strong></td>
      </tr>
      <tr>
        <td height="30"><span class="paypal">Payment </span></td>
        <td>&nbsp;</td>
        <td><strong><span class="paypal">RM
              <label>
                <input name="<%=EbppxConstants.PAYMENT_AMOUNT%>" type="text" id="textfield" size="10" value="<%=amt%>" />
              </label>
          <font color="#FF0000"> *</font></span></strong></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td><span class="paypal-small">Please key in the amount you wish to pay. <br />
          The amount displayed is your outstanding amount.</span><br /></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td class="paypal">&nbsp;</td>
        <td class="paypal">&nbsp;</td>
        <td class="paypal">&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td class="paypal"><strong>Instructions:</strong></td>
        <td class="paypal">&nbsp;</td>
        <td class="paypal">&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td colspan="3" class="paypal"><ul>
          <li class="paypal-small">All fields marked with an asterisk (<font color="#FF0000">*</font>) must be filled in.</li>
          <li><span class="paypal-small">Click on the 'Proceed' button to initiate the activitiy.</span><br />
          </li>
        </ul></td>
        </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="55" colspan="3" align="right" class="paypal"><td height="55" colspan="3" class="bb-modem" align="center"><a href="#" onclick="SubmitForm()"> <img src="images/paypal/proceed.gif" width="131" height="27" border="0" /></a></td>
      </tr>
    </table>
    <p>&nbsp;</p></td>
  </tr>
  <tr>
    <td colspan="3" class="term-small" style="padding:14px 12px 3px 15px;"><font color="#00ae65">Disclaimer: </font>For any payments made at any Maxis Service Centres, the amounts payable shal be according to the statement of accounts as reflected in the Service Centre system on the day payment is to be made. <br />Should there be any discrepancies in amounts between the statement of account printed and the statement of account reflected in the Service Centre’s system. the latter shall prevail.<br />
   <font color="#00ae65"> Release:</font> EBPS_CUS-7.3 Build2</td>
  </tr>
</table>
</form>
</body>
</html>
